{% extends 'base.html' %}

{% block title %}授课详情{% endblock %}

{% block main %}
    <h1>授课详情</h1>
    <hr>
    {% if course_teach %}
        <div class="row row-cols-2 row-gap-4">
            <div class="col">
                <label>课程名称:</label>
                <span>{{ course_teach.course }}</span>
            </div>
            <div class="col">
                <label>教师:</label>
                <spanp>{{ course_teach.teacher.user.username }}</spanp>
            </div>
            <div class="col">
                <label>班级:</label>
                <span>{{ course_teach.classname }}</span>
            </div>
            <div class="col">
                <label>使用教材:</label>
                <span>{{ course_teach.textbook }}</span>
            </div>
            <div class="col">
                <label>学年:</label>
                <spanp>{{ course_teach.school_year }}学年</spanp>
            </div>
            <div class="col">
                <label>学期:</label>
                <span>第{{ course_teach.semester }}学期</span>
            </div>
            <div class="col-12">
                <label></label>
                <hr>
                <div>{{ course_teach.content|safe }}</div>
            </div>
        </div>
    {% else %}
        <div class="alert alert-danger" role="alert">
            该授课不存在
        </div>
    {% endif %}
{% endblock %}
